/** When your routing table is too long, you can split it into small modules**/

const Layout = () => import('@/layout/index.vue');

const userRouter = {
  path: '/user',
  component: Layout,
  name: 'user',
  meta: {
    title: '用戶管理',
    icon: 'chart'
  },
  children: [
    {
      path: 'vip',
      component: () => import('@/views/user/vip.vue'),
      name: 'vip',
      meta: { title: '會員管理', noCache: true, }
    },
    {
      path: 'realname',
      component: () => import('@/views/user/realname.vue'),
      name: 'realname',
      meta: { title: '實名認證', noCache: true }
    },
    {
      path: 'cashAudit',
      component: () => import('@/views/user/cashAudit.vue'),
      name: 'cashAudit',
      meta: { title: '提现审核', noCache: true }
    },
    {
      path: 'editCash',
      component: () => import('@/views/user/editCash.vue'),
      name: 'editCash',
      meta: { title: '提現审核編輯', noCache: true }
    },
    {
      path: 'editVip',
      component: () => import('@/views/user/editVip.vue'),
      name: 'editVip',
      meta: { title: '編輯會員', hidden: true }
    },
    {
      path: 'editRealname',
      component: () => import('@/views/user/editRealname.vue'),
      name: 'editRealname',
      meta: { title: '編輯實名', hidden: true }
    }



  ]
};

export default userRouter;
